package com.stack.auto_parts.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Title: CommonErrorEnum
 * @Author WUYU_MIN
 * @Package com.stack.auto_parts.common.enums
 * @Date 2024/7/8 18:33
 * @description: 返回结果枚举
 */
@Getter
@AllArgsConstructor
public enum CommonErrorEnum {
    BUSINESS_ERROR(500, "{0}"),
    SYSTEM_ERROR(-1, "系统出小差了，请稍后再试哦~~"),
    PARAM_INVALID(-2, "参数校验失败{0}"),
    FREQUENCY_LIMIT(-3, "请求太频繁了，请稍后再试哦~~"),
    ;
    private final Integer code;
    private final String msg;
}
